#!/usr/bin/python
# -*- coding: UTF-8 -*-

from extension.test_logic.DpuLogic import DpuLogic


class DPU2_FUNCTION_006(DpuLogic):
    """
        Name:
            DPU2_FUNCTION_006
        Label:
            SN号检查
        PreCondition:

        TestStep:
            1) dmidecode 查询智能网卡serial-number
        ExpectedResult:
            A) 正常查询到只能网卡SN号
        Parameters:

        Author:
            HK1342
        Last Modified:
            2025/05/08
        Remark:

    """

    # 测试执行前配置等准备操作
    def pre_test_case(self):
        super().pre_test_case()

    # 测试步骤
    def procedure(self):
        dpu_sn = self.query_dpu_sn()
        self.assertIsNotNone(dpu_sn)

    # 测试结束后恢复环境
    def post_test_case(self):
        pass
